package com.yungu.swift.report.service.impl;

import com.yungu.swift.report.dao.ReportConfigDao;
import com.yungu.swift.report.service.ConfigService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Slf4j
@Service
public class ConfigServiceImpl implements ConfigService {

    @Autowired
    private ReportConfigDao reportConfigDao;

    @Override
    public void processReportConfig(int cycle) {
        try {
            reportConfigDao.processReportConfig(cycle);
        } catch (Exception e) {
            log.error("存储过程执行异常", e);
        }
    }
}
